package com.dispacher.springsupport;

public abstract class SpringSwitch {
	public static boolean isSpringSupport() {
		try {
			Class.forName("org.springframework.web.context.support.WebApplicationContextUtils");
			return true;
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			return false;
		}
	}

	public static Object getBean(String name) {
		return WebApplicationContextSupport.getBean(name);
	}
}
